import { Player } from "/static/js/player/base.js";
import { GameMap } from "/static/js/game_map/base.js";
import {Kyo} from "/static/js/player/Kyo.js";
export class KOF {
    constructor(id) {
        this.$kof = $('#' + id); // 通过JQuery操作div
        this.$kof.append(` <div class="kof-head">
        <div class="kof-head-player0-hp"><div></div></div>
        <div class="kof-head-timer">60</div>
        <div class="kof-head-player1-hp"><div></div></div>
    </div>`);
        // console.log(this.$kof); 
        this.game_map = new GameMap(this);
        this.player = [
            new Kyo(this,{  // <div></div>
                id: 0,
                x:200,
                y:0,
                width:120,
                height:200,
                color:'red',
            }),
            new Kyo(this,{
                id: 1,
                x:800,
                y:0,
                width:120,
                height:200,
                color:'blue',
            }),
        ]
        
    }
}